/*
 *  Copyright 2010 UPF Telecos 4th group G.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */

package edu.upf.userinterface;

/**
 * Interface that presents the basic methods needed on a user chat conversation
 * @author netjois
 */
public interface UserChat {

    /**
     * Method that submits the entered text on the chat user interface chat
     */
    public void submitText();

    /**
     * Method that adds text to the chat user interface, receives the name of
     * the user that has entered the text and the text to show.
     * @param name
     * @param text
     */
    public void addText(String name, String text);

    /**
     * Method that adds text entered by the <b>local</b> user to the chat user
     * interface, receives the text to show.
     * @param text
     */
    public void addText(String text);

}
